package com.selfdriving.activity;

import net.tsz.afinal.annotation.view.ViewInject;

import com.selfdriving.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class LoginActivity extends BaseActivity {
	@ViewInject(id = R.id.top_text_name)
	TextView top_text_name;

	@ViewInject(id = R.id.top_text_step)
	TextView top_text_step;

	@ViewInject(id = R.id.tvAgreement,click="tvAgreement")
	TextView tvAgreement;

	@ViewInject(id = R.id.btn_back, click = "btn_back")
	Button btn_back;

	@ViewInject(id = R.id.btn_ok, click = "btn_ok")
	Button btn_ok;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		top_text_name.setText("登录");
		top_text_step.setVisibility(View.GONE);
	}
	
	public void tvAgreement(View v){
		Intent intent = new Intent(this, FindPwdTabsActivity.class);
		startActivity(intent);
	}

	public void btn_ok(View v) {
		Intent intent = new Intent(this, HomePageActivity.class);
		startActivity(intent);
	}

	public void btn_back(View v) {
		this.finish();
	}
}
